﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using RTEditor;

public class AnchorOnSelectedCallback : MonoBehaviour, IRTEditorEventListener
{
    private bool isConfig = false;
    void IRTEditorEventListener.OnAlteredByTransformGizmo(Gizmo gizmo)
    {
        
    }

    bool IRTEditorEventListener.OnCanBeSelected(ObjectSelectEventArgs selectEventArgs)
    {
        return true;
    }

    void IRTEditorEventListener.OnDeselected(ObjectDeselectEventArgs deselectEventArgs)
    {
        
    }

    void IRTEditorEventListener.OnSelected(ObjectSelectEventArgs selectEventArgs)
    {
        //发一个事件给UI
        if (isConfig)
        {
            
        }
    }

    public void OpenConfig(bool state)
    {
        isConfig = state;
    }

    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
